package com.example.printer2.po;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Record {
    public MyFile myFile;
    public String Printer;
    public Date date;

    public Record(MyFile myFile, String printer, Date date) {
        this.myFile = myFile;
        Printer = printer;
        this.date = date;
    }

    public String getDate1()
    {
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
        return sdf1.format(date);
    }

    public String getDate2()
    {
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return sdf1.format(date);
    }
}
